package main

import (
	"log"
	"net/http"
)

func home(w http.ResponseWriter, r *http.Request) {
	w.Write([]byte("Olá Mundo. "))
}

func usuarios(w http.ResponseWriter, r *http.Request) {
	w.Write([]byte("Bem vindo a rota de usuários. "))
}

func main() {
	//Criando servidor http local
	//Criando Rota Home
	http.HandleFunc("/home", home)
	//Criando Rota Usuários
	http.HandleFunc("/usuarios", usuarios)
	//Iniciando o servidor na porta 5000
	log.Fatal(http.ListenAndServe(":5000", nil))
}
